package com.example.user

import androidx.databinding.BaseObservable

class UserEntity : BaseObservable {
    private var userName: String? = null //用户名
    private var userPwd: String? = null //用户密码

    constructor()
    constructor(userName: String?, userPwd: String?) {
        this.userName = userName
        this.userPwd = userPwd
    }

    fun getUserName(): String? {
        return userName
    }

    fun setUserName(userName: String?) {
        this.userName = userName
        notifyChange()
    }

    fun getUserPwd(): String? {
        return userPwd
    }

    fun setUserPwd(userPwd: String?) {
        this.userPwd = userPwd
        notifyChange()
    }
}
